package com.ruoyi.asset.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 维修保养记录对象 maintenance_record
 * 
 * @author ruoyi
 * @date 2023-04-06
 */
@Data
public class MaintenanceRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录编号 */
    @TableId(type = IdType.UUID)
    private String id;

    /** 计划编号 */
    @Excel(name = "计划编号")
    private String planId;

    /** 资产编号 */
    @Excel(name = "资产编号")
    private String assetNumber;

    /** 记录日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date recordDate;

    /** 申请人 */
    @Excel(name = "申请人")
    private String applicant;


    @Excel(name = "申请人姓名")
    private String applicantName;

    /** 维修/保养类型 */
    @Excel(name = "维修/保养类型")
    private String maintenanceType;

    /** 维修/保养日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "维修/保养日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date maintenanceDate;

    /** 维修/保养内容 */
    @Excel(name = "维修/保养内容")
    private String maintenanceContent;

    /** 维修/保养费用 */
    @Excel(name = "维修/保养费用")
    private BigDecimal maintenanceCost;

    /** 维修/保养人员 */
    @Excel(name = "维修/保养人员")
    private String maintenancePersonnel;


    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setPlanId(String planId) 
    {
        this.planId = planId;
    }

    public String getPlanId() 
    {
        return planId;
    }
    public void setAssetNumber(String assetNumber) 
    {
        this.assetNumber = assetNumber;
    }

    public String getAssetNumber() 
    {
        return assetNumber;
    }
    public void setRecordDate(Date recordDate) 
    {
        this.recordDate = recordDate;
    }

    public Date getRecordDate() 
    {
        return recordDate;
    }
    public void setApplicant(String applicant) 
    {
        this.applicant = applicant;
    }

    public String getApplicant() 
    {
        return applicant;
    }
    public void setMaintenanceType(String maintenanceType) 
    {
        this.maintenanceType = maintenanceType;
    }

    public String getMaintenanceType() 
    {
        return maintenanceType;
    }
    public void setMaintenanceDate(Date maintenanceDate) 
    {
        this.maintenanceDate = maintenanceDate;
    }

    public Date getMaintenanceDate() 
    {
        return maintenanceDate;
    }
    public void setMaintenanceContent(String maintenanceContent) 
    {
        this.maintenanceContent = maintenanceContent;
    }

    public String getMaintenanceContent() 
    {
        return maintenanceContent;
    }
    public void setMaintenanceCost(BigDecimal maintenanceCost) 
    {
        this.maintenanceCost = maintenanceCost;
    }

    public BigDecimal getMaintenanceCost() 
    {
        return maintenanceCost;
    }
    public void setMaintenancePersonnel(String maintenancePersonnel) 
    {
        this.maintenancePersonnel = maintenancePersonnel;
    }

    public String getMaintenancePersonnel() 
    {
        return maintenancePersonnel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("planId", getPlanId())
            .append("assetNumber", getAssetNumber())
            .append("recordDate", getRecordDate())
            .append("applicant", getApplicant())
            .append("maintenanceType", getMaintenanceType())
            .append("maintenanceDate", getMaintenanceDate())
            .append("maintenanceContent", getMaintenanceContent())
            .append("maintenanceCost", getMaintenanceCost())
            .append("maintenancePersonnel", getMaintenancePersonnel())
            .append("remark", getRemark())
            .toString();
    }
}
